package com.wontube.core.conf.dogs;

import com.wontube.core.conf.Domain;

/**
 * @author yuechao
 *
 */
public final class DomainWatchDog extends FileWatchDog {
	/**
	 * @param filename
	 */
	public DomainWatchDog(String confPath) {
		super(confPath);
	}

	/* 
	 * @see core.pub.FileWatchDog#doOnChange()
	 */
	@Override
	protected void doOnChange() {
		Domain.defaultDomain.load(super.file);
	}

	@Override
	protected String getFilename() {
		return "domain.json";
	}
}
